import request from '@/utils/request'

// 查询预录入车辆备案列表
export function listPreVehicleRecordingLog(query) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/list',
    method: 'get',
    params: query
  })
}

// 查询预录入车辆备案详细
export function getPreVehicleRecordingLog(id) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/' + id,
    method: 'get'
  })
}

// 新增预录入车辆备案
export function addPreVehicleRecordingLog(data) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/save',
    method: 'post',
    data: data
  })
}

// 修改预录入车辆备案
export function updatePreVehicleRecordingLog(data) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/update',
    method: 'put',
    data: data
  })
}

// 删除预录入车辆备案
export function delPreVehicleRecordingLog(id) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/' + id,
    method: 'delete'
  })
}

// 导出预录入车辆备案
export function exportPreVehicleRecordingLog(query) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/export',
    method: 'get',
    params: query
  })
}

// 检查预录入车辆备案
export function checkVehicle(data) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/checkVehicleRec',
    method: 'post',
    data
  })
}

//申报车辆备案信息
export function declareVehicle(id) {
  return request({
    url: '/kmwlpts/preVehicleRecordingLog/declare/' + id,
    method: 'post'
  })
}
